package bean;

import java.sql.ResultSet;
import java.sql.SQLException;

import common.RowMapper;

public class TcImgRowMapper implements RowMapper<TcImg> {

	@Override
	public TcImg mapper(ResultSet rs) throws SQLException {
		TcImg ti=new TcImg();
		ti.setImgid(rs.getInt("imgid"));
		ti.setThirdCategoryid(rs.getInt("third_categoryid"));
		ti.setTitleImg(rs.getString("title_img"));
		ti.setDetailImg01(rs.getString("detail_img01"));
		ti.setDetailImg02(rs.getString("detail_img02"));
		ti.setDetailImg03(rs.getString("detail_img03"));
		ti.setDetailImg04(rs.getString("detail_img04"));
		ti.setDetailImg05(rs.getString("detail_img05"));
		ti.setDetailImg06(rs.getString("detail_img06"));
		ti.setDetailImg07(rs.getString("detail_img07"));
		ti.setDetailImg08(rs.getString("detail_img08"));
		ti.setDetailImg09(rs.getString("detail_img09"));
		ti.setDetailImg10(rs.getString("detail_img10"));
		return ti;
	}

}
